<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的信息 - 爽客网</title>
<%@include file="../common/js.jsp" %>
<%@include file="../common/jspcommon.jsp" %>
<%@include file="../common/css.jsp" %>
<link href="/css/base/hf.css" type="text/css" rel="stylesheet" />
<link href="/css/other.css" type="text/css" rel="stylesheet" />

<script type="text/javascript">

		//个人主页左侧栏
		function rightManageTab(type) {
			
			switch (type) {
				case '1': {
					$('#mainDetail').load("myKeep.htm");
					break;
				}
				case '2': {
					$('#mainDetail').load("myOrder.htm");
					break;
				}
				case '3': {
					$('#mainDetail').load("myCmt.htm");
					break;
				}
				case '4': {
					$('#mainDetail').load("myPoint.htm");
					break;
				}
				case '5': {
					$('#mainDetail').load("memberMain.htm"); 
					break;
				}case '6': {
					window.location.href="member.htm";
					break;
				}case '7': {
					window.location.href="myTrip.htm"; 
					break;
				}
			}
		}
	//基本信息
	function memberManageTab(type) {
		$(".i_menu li").attr("class", "");
		$("#memberManageTab" + type).addClass("current");
		switch (type) {
		case '1': {
			$('#memberDetail').load("memberInfor.htm");
			break;
		}
		case '2': {
			$('#memberDetail').load("memberCon.htm");
			break;
		}
		case '3': {
			$('#memberDetail').load("memberAva.htm");
			break;
		}
		case '4': {
			$('#memberDetail').load("memberMpw.htm");
			break;
		}
		}
	}
	function seeDetByObj(owner,type){
		if(type=='att'){
			window.open ("scenic.htm?id="+owner);
		}else if(type=='hotel'){
			window.open ("hotel.htm?id="+owner);
		}
		else if(type=='product'){
			window.open ("product.htm?id="+owner);
		}
	}
	
</script>
<!--[if ie 6]><script src="../js/common/iepng.js" type="text/javascript"></script><![endif]-->
<!--[if ie 6]><link href="../../css/jrIE6.css" type="text/css" rel="stylesheet"><![endif]-->
<!--[if ie]><link href="../../css/jrIE.css" type="text/css" rel="stylesheet"><![endif]-->
</head>

<body>
	 <!-- head -->
	<%@include file="../common/header.jsp" %>
	<!-- header-->
	<div class="wrap">
    	<div class="w965 mg i_main_box">
        	<!-- left -->
           <%@include file="myLeft.jsp" %>
            <!-- left--end-->
             <div class="i_right_box" style="height:1500px;" id="mainDetail">
				             	<!-- right -->
				            <div class="i_right_box" style="height:1500px;">
				            	<div class="i_mg_style">
				                	<div class="home_box clearfix">
				                    	<div class="h_left">
				                    		<a href="#"><img src="${member.imageServer}${member.avatar}" class="block" /></a>
				                            <div class="operate"><a href="memberMain.htm">完善资料</a></div>
				                    	</div>
				                        <div class="h_right">
				                        	<span class="name">${member.nickname}</span>
				                            <p class="point">积分：<i>${member.countPoint}</i></p>
				                           <!--  <a href="#" class="message"><i>1</i>个新消息</a> -->
				                        </div>
				                    </div>
				                    
				                    <!--recommend-->
				                    <div class="h_com_box">
				                    	<h1><span>我最新的点评</span><a href="review.htm">我要写点评>></a></h1>
				                    	<c:choose>
				                    	
					                        
				                        	<c:when test="${fn:length(myDisModel.list) > 0}">
				                        	<c:forEach items="${myDisModel.list}" var="dis">
						                        <div class="have_comment">
						                        	<div class="com_item">
						                            	<p><a href="#" class="clrblue2" onclick="seeDetByObj('${dis.owner}','${dis.ownerType}');">${dis.ownerName }</a></p>
						                                <div class="tip"><i>${dis.content }</i><span></span></div>
						                            </div>
						                        </div>
						                     </c:forEach>
					                        </c:when>
					                        <c:otherwise>
							                        <div class="no_comment">
							                        	你还没发表过评论！<a href="review.htm" class="clrblue2">我要写评论</a>
							                        </div>
					                        </c:otherwise>
				                        </c:choose>
				                    </div>
				                    <!--recommend--end-->
				                    
				                 <!--tj-view-->
                    <div class="h_com_box">
                    	<h1><span>为我推荐的</span></h1>
                        <div class="h_tj_box">
                        	<p class="area"></p>
                            <ul class="com_pt_box clearfix">
                            
                                <c:forEach items="${pushForMe}" var="push">
	                                <li>
	                                	<a href="${push.hyperlink}" class="fl"><img src="${push.picture}"  class="block" style="width: 120px;"height="60px;"/></a>
	                                    <div class="r_box">
	                                    	<a href="${push.hyperlink}" class="name">${push.title} </a>
	                                        <p class="info">${push.content}</p>
	                                    </div>
	                                </li>
                                </c:forEach>
                                
                            </ul>
                        </div>
                    </div>
                    <!--tj-view--end-->
					                    
					                </div>
					            </div>
				            <!-- right--end -->
             </div>
        </div>
    </div>
      <!-- help-->
         <div class="w980 mg box_style1">
        	<c:forEach items="${help }" var="c">
        		${c.content}
        	</c:forEach>
        </div>
        <!-- help--end-->
        
    <!-- content--end-->
	    <!-- foot-->
	    <%@include file="../common/footer.jsp" %>
	    <!-- foot--end-->
</body>
</html>